import request from "@/utils/request.js";

const api_prefix = "/common";

export function login(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/login`,
    method: "POST",
    data: data,
  });
}

export function logout(key) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/logout/${key}`,
    method: "GET",
  });
}
